package patterns.actions.observer.oddAndEven;

import java.util.Observable;
import java.util.Observer;

public class OddObserver implements Observer {

	@Override
	public void update(Observable o, Object arg) {
		if(arg==NumObservable.ODD){
			NumObservable myObservable=(NumObservable) o;
			System.out.println("OddObserver :Data has changed to "+ myObservable.getData());
		}
	}
 
}
